<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GimpWidgetsUtils: GIMP 3 Widgets Library Reference Manual</title>
<meta name="generator" content="DocBook XSL Stylesheets Vsnapshot">
<link rel="home" href="index.html" title="GIMP 3 Widgets Library Reference Manual">
<link rel="up" href="libgimpwidgets-utils.html" title="Part VI. GIMP Widgets Utilities">
<link rel="prev" href="libgimpwidgets3-GimpWidgets.html" title="GimpWidgets">
<link rel="next" href="api-index-full.html" title="Index">
<meta name="generator" content="GTK-Doc V1.33.0 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#libgimpwidgets3-GimpWidgetsUtils.description" class="shortcut">Description</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="libgimpwidgets-utils.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="libgimpwidgets3-GimpWidgets.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="api-index-full.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="libgimpwidgets3-GimpWidgetsUtils"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="libgimpwidgets3-GimpWidgetsUtils.top_of_page"></a>GimpWidgetsUtils</span></h2>
<p>GimpWidgetsUtils — A collection of helper functions.</p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="libgimpwidgets3-GimpWidgetsUtils.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpWidgetsUtils.html#gimp-grid-attach-aligned" title="gimp_grid_attach_aligned ()">gimp_grid_attach_aligned</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpWidgetsUtils.html#gimp-label-set-attributes" title="gimp_label_set_attributes ()">gimp_label_set_attributes</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/gdk3/GdkMonitor.html#GdkMonitor-struct"><span class="returnvalue">GdkMonitor</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpWidgetsUtils.html#gimp-widget-get-monitor" title="gimp_widget_get_monitor ()">gimp_widget_get_monitor</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="https://developer.gnome.org/gdk3/GdkMonitor.html#GdkMonitor-struct"><span class="returnvalue">GdkMonitor</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpWidgetsUtils.html#gimp-get-monitor-at-pointer" title="gimp_get_monitor_at_pointer ()">gimp_get_monitor_at_pointer</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpWidgetsUtils.html#gimp-widget-track-monitor" title="gimp_widget_track_monitor ()">gimp_widget_track_monitor</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../html/GimpColorProfile.html#GimpColorProfile-struct"><span class="returnvalue">GimpColorProfile</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpWidgetsUtils.html#gimp-monitor-get-color-profile" title="gimp_monitor_get_color_profile ()">gimp_monitor_get_color_profile</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../html/GimpColorProfile.html#GimpColorProfile-struct"><span class="returnvalue">GimpColorProfile</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpWidgetsUtils.html#gimp-widget-get-color-profile" title="gimp_widget_get_color_profile ()">gimp_widget_get_color_profile</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a href="../html/GimpColorTransform.html#GimpColorTransform-struct"><span class="returnvalue">GimpColorTransform</span></a> *
</td>
<td class="function_name">
<a class="link" href="libgimpwidgets3-GimpWidgetsUtils.html#gimp-widget-get-color-transform" title="gimp_widget_get_color_transform ()">gimp_widget_get_color_transform</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="libgimpwidgets3-GimpWidgetsUtils.description"></a><h2>Description</h2>
<p>A collection of helper functions.</p>
</div>
<div class="refsect1">
<a name="libgimpwidgets3-GimpWidgetsUtils.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gimp-grid-attach-aligned"></a><h3>gimp_grid_attach_aligned ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="returnvalue">GtkWidget</span></a> *
gimp_grid_attach_aligned (<em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkGrid.html#GtkGrid-struct"><span class="type">GtkGrid</span></a> *grid</code></em>,
                          <em class="parameter"><code><span class="type">gint</span> left</code></em>,
                          <em class="parameter"><code><span class="type">gint</span> top</code></em>,
                          <em class="parameter"><code>const <span class="type">gchar</span> *label_text</code></em>,
                          <em class="parameter"><code><span class="type">gfloat</span> xalign</code></em>,
                          <em class="parameter"><code><span class="type">gfloat</span> yalign</code></em>,
                          <em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> *widget</code></em>,
                          <em class="parameter"><code><span class="type">gint</span> columns</code></em>);</pre>
<p>Note that the <em class="parameter"><code>label_text</code></em>
 can be <code class="literal">NULL</code> and that the widget will be
attached starting at (<em class="parameter"><code>column</code></em>
 + 1) in this case, too.</p>
<div class="refsect3">
<a name="gimp-grid-attach-aligned.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>grid</p></td>
<td class="parameter_description"><p>The <a href="https://developer.gnome.org/gtk3/GtkGrid.html#GtkGrid-struct"><span class="type">GtkGrid</span></a> the widgets will be attached to.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>left</p></td>
<td class="parameter_description"><p>The column to start with.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>top</p></td>
<td class="parameter_description"><p>The row to attach the widgets.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>label_text</p></td>
<td class="parameter_description"><p>The text for the <a href="https://developer.gnome.org/gtk3/GtkLabel.html#GtkLabel-struct"><span class="type">GtkLabel</span></a> which will be attached left of
the widget.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>xalign</p></td>
<td class="parameter_description"><p>The horizontal alignment of the <a href="https://developer.gnome.org/gtk3/GtkLabel.html#GtkLabel-struct"><span class="type">GtkLabel</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>yalign</p></td>
<td class="parameter_description"><p>The vertical alignment of the <a href="https://developer.gnome.org/gtk3/GtkLabel.html#GtkLabel-struct"><span class="type">GtkLabel</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>widget</p></td>
<td class="parameter_description"><p>The <a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> to attach right of the label.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>columns</p></td>
<td class="parameter_description"><p>The number of columns the widget will use.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-grid-attach-aligned.returns"></a><h4>Returns</h4>
<p>The created <a href="https://developer.gnome.org/gtk3/GtkLabel.html#GtkLabel-struct"><span class="type">GtkLabel</span></a>. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-label-set-attributes"></a><h3>gimp_label_set_attributes ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gimp_label_set_attributes (<em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkLabel.html#GtkLabel-struct"><span class="type">GtkLabel</span></a> *label</code></em>,
                           <em class="parameter"><code>...</code></em>);</pre>
<p>Sets Pango attributes on a <a href="https://developer.gnome.org/gtk3/GtkLabel.html#GtkLabel-struct"><span class="type">GtkLabel</span></a> in a more convenient way than
<a href="https://developer.gnome.org/gtk3/GtkLabel.html#gtk-label-set-attributes"><code class="function">gtk_label_set_attributes()</code></a>.</p>
<p>This function is useful if you want to change the font attributes
of a <a href="https://developer.gnome.org/gtk3/GtkLabel.html#GtkLabel-struct"><span class="type">GtkLabel</span></a>. This is an alternative to using PangoMarkup which
is slow to parse and awkward to handle in an i18n-friendly way.</p>
<p>The attributes are set on the complete label, from start to end. If
you need to set attributes on part of the label, you will have to
use the PangoAttributes API directly.</p>
<p><span class="annotation">[<acronym title="Exposed in C code, not necessarily available in other languages."><span class="acronym">skip</span></acronym>]</span></p>
<div class="refsect3">
<a name="gimp-label-set-attributes.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>label</p></td>
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk3/GtkLabel.html#GtkLabel-struct"><span class="type">GtkLabel</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>a list of PangoAttrType and value pairs terminated by -1.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-2.html#api-index-2.2">2.2</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-widget-get-monitor"></a><h3>gimp_widget_get_monitor ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/gdk3/GdkMonitor.html#GdkMonitor-struct"><span class="returnvalue">GdkMonitor</span></a> *
gimp_widget_get_monitor (<em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> *widget</code></em>);</pre>
<div class="refsect3">
<a name="gimp-widget-get-monitor.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>widget</p></td>
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-widget-get-monitor.returns"></a><h4>Returns</h4>
<p>the <a href="https://developer.gnome.org/gdk3/GdkMonitor.html#GdkMonitor-struct"><span class="type">GdkMonitor</span></a> where <em class="parameter"><code>widget</code></em>
is current displayed on. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-get-monitor-at-pointer"></a><h3>gimp_get_monitor_at_pointer ()</h3>
<pre class="programlisting"><a href="https://developer.gnome.org/gdk3/GdkMonitor.html#GdkMonitor-struct"><span class="returnvalue">GdkMonitor</span></a> *
gimp_get_monitor_at_pointer (<em class="parameter"><code><span class="type">void</span></code></em>);</pre>
<div class="refsect3">
<a name="gimp-get-monitor-at-pointer.returns"></a><h4>Returns</h4>
<p>the <a href="https://developer.gnome.org/gdk3/GdkMonitor.html#GdkMonitor-struct"><span class="type">GdkMonitor</span></a> where the pointer is. </p>
<p><span class="annotation">[<acronym title="Don't free data after the code is done."><span class="acronym">transfer none</span></acronym>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gimp-widget-track-monitor"></a><h3>gimp_widget_track_monitor ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gimp_widget_track_monitor (<em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> *widget</code></em>,
                           <em class="parameter"><code><span class="type">GCallback</span> monitor_changed_callback</code></em>,
                           <em class="parameter"><code><span class="type">gpointer</span> user_data</code></em>,
                           <em class="parameter"><code><span class="type">GDestroyNotify</span> user_data_destroy</code></em>);</pre>
<p>This function behaves as if <a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> had a signal</p>
<p>GtkWidget::monitor_changed(GtkWidget *widget, gpointer user_data)</p>
<p>That is emitted whenever <em class="parameter"><code>widget</code></em>
's toplevel window is moved from
one monitor to another. This function automatically connects to
the right toplevel <a href="https://developer.gnome.org/gtk3/GtkWindow.html#GtkWindow-struct"><span class="type">GtkWindow</span></a>, even across moving <em class="parameter"><code>widget</code></em>
 between
toplevel windows.</p>
<p>Note that this function tracks the toplevel, not <em class="parameter"><code>widget</code></em>
 itself, so
all a window's widgets are always considered to be on the same
monitor. This is because this function is mainly used for fetching
the new monitor's color profile, and it makes little sense to use
different profiles for the widgets of one window.</p>
<div class="refsect3">
<a name="gimp-widget-track-monitor.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>widget</p></td>
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>monitor_changed_callback</p></td>
<td class="parameter_description"><p>the callback when <em class="parameter"><code>widget</code></em>
's monitor changes</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data</p></td>
<td class="parameter_description"><p>data passed to <em class="parameter"><code>monitor_changed_callback</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>user_data_destroy</p></td>
<td class="parameter_description"><p>destroy function for <em class="parameter"><code>user_data</code></em>
.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<p class="since">Since: <a class="link" href="api-index-2-10.html#api-index-2.10">2.10</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-monitor-get-color-profile"></a><h3>gimp_monitor_get_color_profile ()</h3>
<pre class="programlisting"><a href="../html/GimpColorProfile.html#GimpColorProfile-struct"><span class="returnvalue">GimpColorProfile</span></a> *
gimp_monitor_get_color_profile (<em class="parameter"><code><a href="https://developer.gnome.org/gdk3/GdkMonitor.html#GdkMonitor-struct"><span class="type">GdkMonitor</span></a> *monitor</code></em>);</pre>
<p>This function returns the <a href="../html/GimpColorProfile.html#GimpColorProfile-struct"><span class="type">GimpColorProfile</span></a> of <em class="parameter"><code>monitor</code></em>

or <code class="literal">NULL</code> if there is no profile configured.</p>
<div class="refsect3">
<a name="gimp-monitor-get-color-profile.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>monitor</p></td>
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gdk3/GdkMonitor.html#GdkMonitor-struct"><span class="type">GdkMonitor</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-monitor-get-color-profile.returns"></a><h4>Returns</h4>
<p>the monitor's <a href="../html/GimpColorProfile.html#GimpColorProfile-struct"><span class="type">GimpColorProfile</span></a>,
or <code class="literal">NULL</code>. </p>
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-widget-get-color-profile"></a><h3>gimp_widget_get_color_profile ()</h3>
<pre class="programlisting"><a href="../html/GimpColorProfile.html#GimpColorProfile-struct"><span class="returnvalue">GimpColorProfile</span></a> *
gimp_widget_get_color_profile (<em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> *widget</code></em>);</pre>
<p>This function returns the <a href="../html/GimpColorProfile.html#GimpColorProfile-struct"><span class="type">GimpColorProfile</span></a> of the monitor <em class="parameter"><code>widget</code></em>
 is
currently displayed on, or <code class="literal">NULL</code> if there is no profile configured.</p>
<div class="refsect3">
<a name="gimp-widget-get-color-profile.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>widget</p></td>
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-widget-get-color-profile.returns"></a><h4>Returns</h4>
<p><em class="parameter"><code>widget</code></em>
's monitor's <a href="../html/GimpColorProfile.html#GimpColorProfile-struct"><span class="type">GimpColorProfile</span></a>,
or <code class="literal">NULL</code>. </p>
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-3-0.html#api-index-3.0">3.0</a></p>
</div>
<hr>
<div class="refsect2">
<a name="gimp-widget-get-color-transform"></a><h3>gimp_widget_get_color_transform ()</h3>
<pre class="programlisting"><a href="../html/GimpColorTransform.html#GimpColorTransform-struct"><span class="returnvalue">GimpColorTransform</span></a> *
gimp_widget_get_color_transform (<em class="parameter"><code><a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a> *widget</code></em>,
                                 <em class="parameter"><code><a href="../html/GimpColorConfig.html#GimpColorConfig-struct"><span class="type">GimpColorConfig</span></a> *config</code></em>,
                                 <em class="parameter"><code><a href="../html/GimpColorProfile.html#GimpColorProfile-struct"><span class="type">GimpColorProfile</span></a> *src_profile</code></em>,
                                 <em class="parameter"><code>const <span class="type">Babl</span> *src_format</code></em>,
                                 <em class="parameter"><code>const <span class="type">Babl</span> *dest_format</code></em>);</pre>
<p>This function returns the <a href="../html/GimpColorTransform.html#GimpColorTransform-struct"><span class="type">GimpColorTransform</span></a> that transforms pixels
from <em class="parameter"><code>src_profile</code></em>
 to the profile of the <a href="https://developer.gnome.org/gdk3/GdkMonitor.html#GdkMonitor-struct"><span class="type">GdkMonitor</span></a> the <em class="parameter"><code>widget</code></em>
 is
displayed on.</p>
<div class="refsect3">
<a name="gimp-widget-get-color-transform.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>widget</p></td>
<td class="parameter_description"><p>a <a href="https://developer.gnome.org/gtk3/GtkWidget.html#GtkWidget-struct"><span class="type">GtkWidget</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>config</p></td>
<td class="parameter_description"><p>a <a href="../html/GimpColorConfig.html#GimpColorConfig-struct"><span class="type">GimpColorConfig</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>src_profile</p></td>
<td class="parameter_description"><p>a <a href="../html/GimpColorProfile.html#GimpColorProfile-struct"><span class="type">GimpColorProfile</span></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>src_format</p></td>
<td class="parameter_description"><p>Babl format for the transform's source pixels</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>dest_format</p></td>
<td class="parameter_description"><p>Babl format for the transforms's destination pixels</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gimp-widget-get-color-transform.returns"></a><h4>Returns</h4>
<p>the <a href="../html/GimpColorTransform.html#GimpColorTransform-struct"><span class="type">GimpColorTransform</span></a>. </p>
<p><span class="annotation">[<acronym title="NULL may be passed as the value in, out, in-out; or as a return value."><span class="acronym">nullable</span></acronym>][<acronym title="Free data after the code is done."><span class="acronym">transfer full</span></acronym>]</span></p>
</div>
<p class="since">Since: <a class="link" href="api-index-2-10.html#api-index-2.10">2.10</a></p>
</div>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.33.0</div>
</body>
</html>